<?php
class ORMMyOrderNote extends ORMBase {
  public function __construct() {
    parent::__construct('MyOrderNote');
  }

  public function __toEpObject($myManager, $epObject, $object) {
    $epObject->trackId = isset($object->trackId) ? $object->trackId : '';
    $epObject->orderId = isset($object->orderId) ? $object->orderId : 0;
    $epObject->orderDiscountNote = isset($object->orderDiscountNote) ? $object->orderDiscountNote : '';
    $epObject->noWeddingDayNote = isset($object->noWeddingDayNote) ? $object->noWeddingDayNote : '';
    $epObject->firstPaymentNote1 = isset($object->firstPaymentNote1) ? $object->firstPaymentNote1 : '';
    $epObject->firstPaymentNote2 = isset($object->firstPaymentNote2) ? $object->firstPaymentNote2 : '';
    $epObject->firstPaymentNote3 = isset($object->firstPaymentNote3) ? $object->firstPaymentNote3 : '';
    $epObject->firstPaymentNote4 = isset($object->firstPaymentNote4) ? $object->firstPaymentNote4 : '';
    $epObject->secondPaymentNote1 = isset($object->secondPaymentNote1) ? $object->secondPaymentNote1 : '';
    $epObject->secondPaymentNote2 = isset($object->secondPaymentNote2) ? $object->secondPaymentNote2 : '';
    $epObject->thirdPaymentNote1 = isset($object->thirdPaymentNote1) ? $object->thirdPaymentNote1 : '';
    $epObject->thirdPaymentNote2 = isset($object->thirdPaymentNote2) ? $object->thirdPaymentNote2 : '';
    $epObject->forthPaymentNote = isset($object->forthPaymentNote) ? $object->forthPaymentNote : '';
    return $epObject;
  }

  public function __toObject($myManager, $epObject, $object) {
    $object->id = $epObject->oid;
    $object->trackId = $epObject->trackId;
    $object->orderId = $epObject->orderId;
    $object->orderDiscountNote = $epObject->orderDiscountNote;
    $object->noWeddingDayNote = $epObject->noWeddingDayNote;
    $object->firstPaymentNote1 = $epObject->firstPaymentNote1;
    $object->firstPaymentNote2 = $epObject->firstPaymentNote2;
    $object->firstPaymentNote3 = $epObject->firstPaymentNote3;
    $object->firstPaymentNote4 = $epObject->firstPaymentNote4;
    $object->secondPaymentNote1 = $epObject->secondPaymentNote1;
    $object->secondPaymentNote2 = $epObject->secondPaymentNote2;
    $object->thirdPaymentNote1 = $epObject->thirdPaymentNote1;
    $object->thirdPaymentNote2 = $epObject->thirdPaymentNote2;
    $object->forthPaymentNote = $epObject->forthPaymentNote;
    return $object;
  }
}
?>
